package com.fy.common.vo;

import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@RequiredArgsConstructor
public class ResultVo<T> {
    @NonNull
    private boolean success;

    @NonNull
    private String msg;

    private T data;

    private String code;

    public ResultVo(@NonNull boolean success, @NonNull String msg, T data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
}
